/*!
\copyright  Copyright (c) 2024 Qualcomm Technologies International, Ltd.\n
            All Rights Reserved.\n
            Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\file
\brief      GATT Connect event channel spec
*/

#ifndef GATT_CONNECT_CHANNEL_EVENT_SPEC_H_
#define GATT_CONNECT_CHANNEL_EVENT_SPEC_H_

#include "channel_event_spec_ids.h"
#include <bdaddr.h>
#include <connection.h>

/*! @{ */

/*! \brief The GATT Connect event channel */
#define EVENT_BUS_CHANNEL_GATT_CONNECT  gatt_connect_event_channel

/*! \brief The GATT Connect event that are sent. */
typedef enum
{
    gatt_connect_on_disconnect_ind,
    gatt_connect_on_encryption_changed_ind,
} gatt_connect_event_t;


typedef struct
{
    uint32     cid;                /*!< Connection identifier */
    uint16     connection_handle;  /*!< Connection handle of LE*/
    tp_bdaddr  tpaddr;
    bool       encrypted;
} gatt_connect_on_encryption_changed_ind_t;

typedef struct
{
    uint32     cid;                /*!< Connection identifier */
} gatt_connect_on_disconnect_ind_t;

/*! @} */

#endif /* GATT_CONNECT_CHANNEL_EVENT_SPEC_H_ */
